package com.tarena.lbs.basic.web;


import com.tarena.lbs.basic.web.event.output.LocationShopOutputSource;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication(
        scanBasePackages = {
                "com.tarena.lbs.basic.web",
                "com.tarena.lbs.common.security",
                "com.tarena.lbs.*.basic"
        }
)
@MapperScan("com.tarena.lbs.basic.web.mapper")
@ImportResource({"classpath:dubbo.xml"})
@EnableBinding(LocationShopOutputSource.class)
public class BasicWeb {
    public static void main(String[] args) {
        SpringApplication.run(BasicWeb.class,args);
    }
}
